<div class="winningstudentworksleadings form">
	<script>
    $(function() {
        $( ".datepicker" ).datepicker({ dateFormat: "yy-mm-dd" });
    });
    </script>
<h2>Добавление записи</h2>
<h5>Тип добавляемой записи <?php echo $recordtypes[$recordtype_id]; ?></h5>
<?php 
	if ($recordtype_id == 2600)  {
	
	echo '<h6>Обязательно добавьте студентов соавторов на странице просмотра</h6>';
}	
?>
<?php echo $this->Form->create('Winningstudentworksleading'); ?>
	<fieldset>
		<legend><?php echo __('Add Winningstudentworksleading'); ?></legend>
			<?php 
			echo $this->form->hidden('recordtype_id', array('value' => $recordtype_id));
		?>	
<table width="100%" class="invisibletable">
  <tr>
    <td align="right">Уровень мероприятия</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('competitionleveltype_id', array('label' => '', 'empty' => 'Выберите уровень мероприятия')); ?></td>
  </tr>
  <tr>
    <td width="15%" align="right">Название конкурса</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('competition_name', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td width="15%" align="right">Организатор конкурса</td>
    <td width="2%" align="right"><font color="red">*</font></td>
    <td width="45%"><?php echo $this->Form->input('competition_owner', array('label' => '')); ?>

	</td>
  </tr>
  <tr>
    <td align="right">Название работы</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('studentwork_name', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td align="right">Название поощрения</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('won_prize', array('label' => '')); ?></td>
  </tr>
  <tr>
    <td align="right">Дата начала мероприятия</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('begindate', array('label' =>'', 'class' => 'datepicker', 'type'=>'text', 'size' => 10)); ?></td>
  </tr>
  <tr>
    <td align="right">Дата окончания мероприятия</td>
    <td align="right"><font color="red">*</font></td>
    <td><?php echo $this->Form->input('enddate', array('label' =>'', 'class' => 'datepicker', 'type'=>'text', 'size' => 10)); ?></td>
  </tr>
</table>
	<?php 
		echo $this->Form->hidden('recstatus_id', array('value' => '1'));
	?>
	</fieldset>
	<br />
<?php echo $this->Form->end(__('Submit')); ?>
</div>		